package com.glp.work.flow.service.impl;

import com.glp.common.reponse.BaseResponse;
import com.glp.common.reponse.BaseResult;
import com.glp.fbs.api.dto.appInfo.AppUserReq;
import com.glp.fbs.api.dto.appInfo.AppUserResp;
import com.glp.fbs.api.dto.user.PersonInfoWithAppReq;
import com.glp.work.flow.dto.UserEntity;
import com.glp.work.flow.dto.request.PersonInfoReq;
import com.glp.work.flow.dto.request.RoleAndPermReq;
import com.glp.work.flow.dto.request.UsersRequstDto;
import com.glp.work.flow.pojo.RoleCodes;
import com.glp.work.flow.request.RoleRequest;
import com.glp.work.flow.response.RolesResponse;
import com.glp.work.flow.service.client.PermissionClient;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionClientFallback implements PermissionClient {

    @Override
    public BaseResult getRoleAndPermList(String userNo, String appId) {

        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getPersonInfo(String userNo) {

        return BaseResponse.error("服务未响应");
    }

  @Override
    public BaseResult getPersonInfos(PersonInfoReq req) {

        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getAppList(String userNo) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getRoleIdsAndPermIds(String userNo) {

        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getPermIdsByRoleIds(RoleAndPermReq req) {

        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getUserNoListByRoleId(String roleCode, String appId) {

        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getSubPersonInfos(String userNo) {

        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult logout(String userNo, String appId) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult<List<UserEntity>> userList(UsersRequstDto dto) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult enabledRoles(RoleRequest roleRequest) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult<List<RolesResponse>> personRoles(String userNo, String appId) {
        return BaseResponse.error("服务未响应");
    }


    @Override
    public BaseResult personInfosByRoleCodeList(RoleCodes roleCodes) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getPersonAllEnableRoles(String userNo) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getPersonInfo(String createUserId, String appId) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getPersonSubordinate(String userNo) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult getPersonInfos(String appId, PersonInfoReq req) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult detailByAppId(String appId) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult<List<AppUserResp>> appInfoUsers(AppUserReq appUserReq) {
        return BaseResponse.error("服务未响应");
    }

    @Override
    public BaseResult<List<AppUserResp>> getPersonWithBusinessList(PersonInfoWithAppReq req) {
        return BaseResponse.error("服务未响应");
    }

}
